﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NHibernateDemo.Core
{

    public interface IAuditableEntity
    {
        DateTime UpdateDate { get; set; }        
    }

    public class AuditableEntity<TIdentity> : Entity<TIdentity>, IAuditableEntity
    {
        private DateTime _updateDate = DateTime.Now;
        public virtual DateTime UpdateDate
        {
            get { return _updateDate; }
            set { _updateDate = value; }
        }
    }

    public class Entity<TIdentity>
    {
        public virtual TIdentity ID { get; set; }
    }
}
